
export const commentRoutes = [
  {
    path: '/login',
    component: () => import('../view/login/index.vue'),
    name: 'login',
    meta: {
      title: '登录',
      isShow: false,
    }
  },
  {
    path: '/404',
    component: () => import('../view/404/index.vue'),
    name: '404',
    meta: {
      title: '404',
      isShow: false,
    }
  },
  {
    path: '/',
    component: () => import('../layout/index.vue'),
    name: 'layout',
    meta: {
      title:'',
      isShow: true,
      icon: 'House'
    },
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('../view/home/index.vue'),
        name: 'home',
        meta: {
          title: '首页',
          isShow: true,
          icon: 'House'
        }
      }
    ]
  },
  {
    path: '/screen',
    component: () => import('../view/screen/index.vue'),
    name: 'screen',
    meta: {
      title: '数据大屏',
      isShow: true,
      icon: 'Monitor'
    }
  },
  {
    path: '/acl',
    component: () => import('../layout/index.vue'),
    name: 'Acl',
    meta: {
      title: '权限管理',
      isShow: true,
      icon: 'Lock'
    },
    redirect:'/acl/user',
    children: [
      {
        path: '/acl/user',
        component: () => import('../view/acl/user/index.vue'),
        name: 'user',
        meta: {
          title: '用户管理',
          isShow: true,
          icon: 'User'
        }
      },
      {
        path: '/acl/role',
        component: () => import('../view/acl/role/index.vue'),
        name: 'role',
        meta: {
          title: '角色管理',
          isShow: true,
          icon: 'UserFilled'
        }
      },
      {
        path: '/acl/permission',
        component: () => import('../view/acl/permission/index.vue'),
        name: 'permission',
        meta: {
          title: '菜单管理',
          isShow: true,
          icon: 'Memo'
        }
      }
    ]
  },
  {
    path: '/product',
    component: () => import('../layout/index.vue'),
    name: 'product',
    meta: {
      title: '商品管理',
      isShow: true,
      icon: 'ShoppingBag'
    },
    redirect:'/product/attr',
    children: [
      {
        path: '/product/attr',
        component: () => import('../view/product/attr/index.vue'),
        name: 'attr',
        meta: {
          title: '品牌管理',
          isShow: true,
          icon: 'ShoppingCart'
        }
      },
      {
        path: '/product/trademark',
        component: () => import('../view/product/trademark/index.vue'),
        name: 'trademark',
        meta: {
          title: '属性管理',
          isShow: true,
          icon: 'Setting'
        }
      },
      {
        path: '/product/spu',
        component: () => import('../view/product/spu/index.vue'),
        name: 'spu',
        meta: {
          title: 'SPU管理',
          isShow: true,
          icon: 'Grid'
        }
      },
      {
        path: '/product/sku',
        component: () => import('../view/product/sku/index.vue'),
        name: 'sku',
        meta: {
          title: 'SKU管理',
          isShow: true,
          icon: 'Grid'
        }
      }
    ]
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '任意路由',
      isShow: false,
    }
  }
]